<%@page import="fy.bean.Ssfwzx"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" isErrorPage="true"
	pageEncoding="UTF-8"%>
<%@ page import="fy.bean.*,java.util.*,fy.util.*"%>
<%
	/* NewsBean newsBean = new NewsBean();
	List<NewsBean> newlist = newsBean.findAllByLb("法院动态"); */
	int everyPage = 20; //每页的记录条数
	int currentPage = 1;//当前的页码

	if (request.getParameter("PageNo") != null) { //如果为空，则表示第1页
		currentPage = Integer.parseInt(request.getParameter("PageNo"));
	}
	WsmbBean newsBean = new WsmbBean();
	int totalCount = newsBean.findCount();
	Page newsPage = PageUtil.createPage(everyPage, totalCount, currentPage);

	List<WsmbBean> newlist = newsBean.findAllByLbForFY(newsPage);

	PictureBean picture1 = new PictureBean();
	List<PictureBean> tplb1 = picture1.findsfgkByLb("dblb");
	PictureBean picture3 = new PictureBean();
	List<PictureBean> tplb3 = picture1.findsfgkByLb("lmtp");
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>赣州经济技术开发区人民法院</title>
<link rel="shortcut icon" type="image/x-icon" href="../img/国徽.png">
<link rel="stylesheet" type="text/css" href="../css/css.css">
<link rel="stylesheet" type="text/css" href="../css/1.css">
<link rel="stylesheet" type="text/css" href="../css/2.css">
<link rel="stylesheet" type="text/css" href="../css/byjs.css">
<link rel="stylesheet" type="text/css" href="../css/new.css">

<link rel="stylesheet" href="../css/css5.css" />
<link rel="stylesheet" type="text/css" href="../css/byjs.css">

<link rel="stylesheet" type="text/css" href="../css/css1.css">
<script src="../js/jquery.js"></script>
<script src="../js/index.js"></script>

<link rel="stylesheet" type="text/css" href="../css/zzsc.css" />
<link rel="stylesheet" type="text/css" href="../css/3.css">
<link type="text/css" rel="stylesheet" href="../css/carousel.css">
</head>
<body>

	<div>
		<div class="top">
			<div class="c-banner">
				<div class="top_up">
					<div class="top_hare">
						<div class="top_picture">
							<img src="../img/国徽.png">
						</div>
						<div class="top_words">
							<span>赣州经济技术开发区人民法院</span>
						</div>

					</div>
				</div>
				<div class="banner">
					<ul>
						<%
							for (int i = 0; i < tplb1.size(); i++) {
						%>

						<li><img src="<%=tplb1.get(i).getPicture()%>"></li>
						<%
							}
						%>
					</ul>
				</div>

				<script type="text/javascript" src="../js/jquery.js"></script>
				<script type="text/javascript">
					//定时器返回值
					var time = null;
					//记录当前位子
					var nexImg = 0;
					//用于获取轮播图图片个数
					var imgLength = $(".c-banner .banner ul li").length;
					//当时动态数据的时候使用,上面那个删除
					// var imgLength =0;
					//设置底部第一个按钮样式
					$(".c-banner .jumpBtn ul li[jumpImg=" + nexImg + "]").css(
							"background-color", "black");

					//页面加载
					$(document).ready(function() {
						// dynamicData();
						//启动定时器,设置时间为3秒一次
						time = setInterval(intervalImg, 3000);
					});

					//点击上一张
					$(".preImg").click(
							function() {
								//清楚定时器
								clearInterval(time);
								var nowImg = nexImg;
								nexImg = nexImg - 1;
								console.log(nexImg);
								if (nexImg < 0) {
									nexImg = imgLength - 1;
								}
								//底部按钮样式设置
								$(".c-banner .jumpBtn ul li").css(
										"background-color", "white");
								$(
										".c-banner .jumpBtn ul li[jumpImg="
												+ nexImg + "]").css(
										"background-color", "black");

								//将当前图片试用绝对定位,下一张图片试用相对定位
								$(".c-banner .banner ul img").eq(nowImg).css(
										"position", "absolute");
								$(".c-banner .banner ul img").eq(nexImg).css(
										"position", "relative");

								//轮播淡入淡出
								$(".c-banner .banner ul li").eq(nexImg).css(
										"display", "block");
								$(".c-banner .banner ul li").eq(nexImg).stop()
										.animate({
											"opacity" : 1
										}, 1000);
								$(".c-banner .banner ul li").eq(nowImg).stop()
										.animate(
												{
													"opacity" : 0
												},
												1000,
												function() {
													$(".c-banner ul li").eq(
															nowImg).css(
															"display", "none");
												});

								//启动定时器,设置时间为3秒一次
								time = setInterval(intervalImg, 3000);
							})

					//点击下一张
					$(".nexImg").click(function() {
						clearInterval(time);
						intervalImg();
						time = setInterval(intervalImg, 3000);
					})

					//轮播图
					function intervalImg() {
						if (nexImg < imgLength - 1) {
							nexImg++;
						} else {
							nexImg = 0;
						}

						//将当前图片试用绝对定位,下一张图片试用相对定位
						$(".c-banner .banner ul img").eq(nexImg - 1).css(
								"position", "absolute");
						$(".c-banner .banner ul img").eq(nexImg).css(
								"position", "relative");

						$(".c-banner .banner ul li").eq(nexImg).css("display",
								"block");
						$(".c-banner .banner ul li").eq(nexImg).stop().animate(
								{
									"opacity" : 1
								}, 1000);
						$(".c-banner .banner ul li").eq(nexImg - 1).stop()
								.animate(
										{
											"opacity" : 0
										},
										1000,
										function() {
											$(".c-banner .banner ul li").eq(
													nexImg - 1).css("display",
													"none");
										});
						$(".c-banner .jumpBtn ul li").css("background-color",
								"white");
						$(".c-banner .jumpBtn ul li[jumpImg=" + nexImg + "]")
								.css("background-color", "black");
					}

					//轮播图底下按钮
					//动态数据加载的试用应放在请求成功后执行该代码,否则按钮无法使用
					$(".c-banner .jumpBtn ul li")
							.each(
									function() {
										//为每个按钮定义点击事件
										$(this)
												.click(
														function() {
															clearInterval(time);
															$(
																	".c-banner .jumpBtn ul li")
																	.css(
																			"background-color",
																			"white");
															jumpImg = $(this)
																	.attr(
																			"jumpImg");
															if (jumpImg != nexImg) {
																var after = $(
																		".c-banner .banner ul li")
																		.eq(
																				jumpImg);
																var befor = $(
																		".c-banner .banner ul li")
																		.eq(
																				nexImg);

																//将当前图片试用绝对定位,下一张图片试用相对定位
																$(
																		".c-banner .banner ul img")
																		.eq(
																				nexImg)
																		.css(
																				"position",
																				"absolute");
																$(
																		".c-banner .banner ul img")
																		.eq(
																				jumpImg)
																		.css(
																				"position",
																				"relative");

																after
																		.css(
																				"display",
																				"block");
																after
																		.stop()
																		.animate(
																				{
																					"opacity" : 1
																				},
																				1000);
																befor
																		.stop()
																		.animate(
																				{
																					"opacity" : 0
																				},
																				1000,
																				function() {
																					befor
																							.css(
																									"display",
																									"none");
																				});
																nexImg = jumpImg;
															}
															$(this)
																	.css(
																			"background-color",
																			"black");
															time = setInterval(
																	intervalImg,
																	3000);
														});
									});
				</script>
			</div>
		</div>
		<div style="width: 1100px; height: 1000px; margin: auto;">
			<div
				style="width: 1100px; height: 100px; border: 1px solid white; z-index: 1000; position: relative;">
				<div id="nav">
					<ul style="font: black">
						<li><a href="../index.jsp"> 首页</a></li>
						<li><a href="../courtintroduce/courtintroduce.jsp"> 法院介绍
						</a></li>
						<li><a href="../dwgz/dwgz.jsp"> 党建引领 </a></li>
						<li><a href="../newscenter/newcenter.jsp"> 新闻中心 </a></li>
						<li><a href="../sfgk/ggl.jsp"> 司法公开 </a></li>
						<li style="width: 140px;"><a href="../ssfwzx/yyla.jsp">
								诉讼服务中心 </a></li>
						<li><a href="../fywh/whzb.jsp"> 法院文化 </a></li>
						<li style="border-right: 0px"><a href="../zxhd/yzxx.jsp">
								在线互动 </a></li>

					</ul>
				</div>


				<div
					style="width: 350px; height: 950px; float: left; margin-top: 50px;">


					<div class="new1">
						<div style="width: 60%;">
							<a href="yyla.jsp" style="font-size: 25px;"><font
								color="white">诉讼服务中心</font></a>
						</div>
					</div>
					<div class="new3">
						<a href="yyla.jsp" style="font-size: 25px">
							<center>预约立案</center>
						</a>
					</div>


					<div class="new3">
						<a href="ssfy.jsp" style="font-size: 25px">
							<center>诉讼费用</center>
						</a>
					</div>

					<div class="new3">
						<a href="sszn.jsp" style="font-size: 25px"><center>
								诉讼指南</center></a>
					</div>

					<div class="new3">
						<a href="wsmb.jsp" style="font-size: 25px;"><center>
								文书模板</center></a>
					</div>



					<div class="new3">
						<a href="https://www.chinacourt.org/law.shtml"
							style="font-size: 25px">
							<center>法律文库</center>
						</a>
					</div>
					<div class="new3">
						<a href="fxgz.jsp" style="font-size: 25px">
							<center>风险告知</center>
						</a>
					</div>

					<%
						for (int i = 0; i < tplb3.size(); i++) {
					%>
					<div class="new4" id="#boxshadow">

						<a href="<%=tplb3.get(i).getLink()%>"> <img
							src="<%=tplb3.get(i).getPicture()%>">
						</a>
					</div>
					<%
						}
					%>
					<div class="tb">
						<a href="../zxhd/yzxx.jsp"><img src="../img/1.gif"></a>
					</div>
					<div class="tb">
						<a href="http://jubao.court.gov.cn/E7J"><img
							src="../img/2.gif"></a>
					</div>
				</div>



				<div class="new_content">
					<div class="new_son_content_box">
						<strong>&nbsp;&nbsp;&nbsp;</strong> <a href="../index.jsp">首页</a>&gt;&gt;
						<a target="_blank" href="yyla.jsp">诉讼服务中</a> &gt;&gt;<a
							target="_blank" href="wsmb.jsp">文书模板</a>
					</div>




					<div class="d7"
						style="height: 650px; width: 700px; border: 2px red solid; margin-top: 10px;">
						<ul class="news_list">
							<%
								for (int i = 0; i < newlist.size(); i++) {
							%>





							<li><a
								href="../FileDownloadServlet?filename=<%=newlist.get(i).getFilename()%>&filepath=<%=newlist.get(i).getFilepath()%>"
								style="font-size: 18px"><%=newlist.get(i).getTitle()%></a><span><%=newlist.get(i).getTime()%></span>
							</li>

							<%
								}
							%>
						
					</div>
					<div style="width: 630px; height: 30px; float: right;">
						<span style="font-size: 18px">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;共<%=newsPage.getTotalCount()%>条记录
							<%=newsPage.getCurrentPage()%>/<%=newsPage.getTotalPage()%>页
						</span> &nbsp; <a href="wsmb.jsp" style="width: 52px; font-size: 20px"
							disabled="disabled">首页</a>
						<%
							if (newsPage.isHasPrePage()) {
						%>
						<a style="width: 52px; font-size: 20px"
							href="wsmb.jsp?PageNo=<%=newsPage.getCurrentPage() - 1%>">上一页</a>&nbsp;&nbsp;
						<%
							}
						%>
						<%
							if (newsPage.isHasNextPage()) {
						%>
						<a style="width: 52px; font-size: 20px"
							href="wsmb.jsp?PageNo=<%=newsPage.getCurrentPage() + 1%>">下一页</a>
						<%
							}
						%>
						<a href="wsmb.jsp?PageNo=<%=newsPage.getTotalPage()%>"
							style="width: 52px; font-size: 20px" href="index_95.htm">尾页</a>&nbsp;
						<span style="font-size: 18px;">第<select
							onChange="window.location=this.value;">
								<%
									for (int i = 1; i <= newsPage.getTotalPage(); i++) {
								%>
								<option value="wsmb.jsp?PageNo=<%=i%>"
									<%if (newsPage.getCurrentPage() == i) {%> selected="selected"
									<%}%>><%=i%></option>
								<%
									}
								%>
						</select>页
						</span>

					</div>
				</div>



			</div>
		</div>
	</div>


	</div>
	</div>
	<div style="margin-top: 20px; width: 100%;">
		<div
			style="width: 100%; height: 3px; background-color: red; margin-bottom: 5px; border: 1px red solid;"></div>
		<div class="div22"
			style="background: -webkit-linear-gradient(top, #c71002, #f2d4d1);">
			<div style="width: 1100px; margin: auto;">
				<div
					style="width: 20%; height: 71%; float: left; padding-top: 50px;">
					<a
						href="http://bszs.conac.cn/sitename?method=show&id=29975AEF1BAB5BBDE053012819AC83CC"><img
						src="../img/a1.jpg" style="width: 25%; height: 52%;"></a>
				</div>
				<div class="fonter"
					style="font-size: 16px; position: absolute; margin-left: 450px; margin-top: 50px; text-align: center;">
					Copyright 2014 www.gzjkqfy.gov.cn All Rights Reserved<br>
					赣ICP备14009074号<br> 赣州经济技术开发区人民法院 主办<br> 电话：0797-8375993 <br>
					技术支持：深圳市易当家软件开发有限公司
				</div>
			</div>
		</div>
	</div>

</body>
</html>